﻿using MainAppEntryPrismWpf;
using System;
using System.Collections.Generic;
using System.Collections.ObjectModel;
using System.ComponentModel;
using System.Linq;
using System.Runtime.CompilerServices;
using System.Text;
using System.Threading.Tasks;

namespace SCDB.ViewModels
{
    class UserModel
    {

    }


    public class UserInfo
    {
        int yGBH;
        string yGXM;
        string yGXB;

        int jSDJ;
        string cJH;

        bool formal;

        public bool Formal
        {
            get { return formal; }
            set { formal = value; }
        }
        public int JSDJ
        {
            get { return jSDJ; }
            set { jSDJ = value; }
        }

        public int YGBH
        {
            get { return yGBH; }
            set { yGBH = value; }
        }

        public string YGXM
        {
            get { return yGXM; }
            set { yGXM = value; }
        }

        public string YGXB
        {
            get { return yGXB; }
            set { yGXB = value; }
        }

        public string CJH
        {
            get { return cJH; }
            set { cJH = value; }
        }

        //public OrderInfo(int orderId, string customerName, string country, string customerId, string shipCity)
        //{
        //    this.OrderID = orderId;
        //    this.CustomerName = customerName;
        //    this.Country = country;
        //    this.CustomerID = customerId;
        //    this.ShipCity = shipCity;
        //}
    }
    public class UserInfoViewModel
    {
        private ObservableCollection<UserInfo> _users;
        public ObservableCollection<UserInfo> Users
        {
            get { return _users; }
            set { _users = value; }
        }

        public UserInfoViewModel()
        {
            _users = new ObservableCollection<UserInfo>();

            _users.Add( new UserInfo() { YGBH=1001,YGXM="zhang San",YGXB="男",JSDJ=2}     );
            _users.Add(new UserInfo() { YGBH = 1002, YGXM = "zhang San", YGXB = "男", JSDJ = 3 });
            _users.Add(new UserInfo() { YGBH = 1003, YGXM = "zhang San", YGXB = "男", JSDJ = 4 });
            //this.GenerateOrders();
        }   


    }

    public class ViewModel
    {
        private List<DSZX_YGXXB> shippers;

        public List<DSZX_YGXXB> Shippers
        {
            get { return shippers; }
            set { shippers = value; }
        }

        public ViewModel()
        {
            DataClassesSCDBDataContext northWind = new DataClassesSCDBDataContext();
            shippers = (from data in northWind.DSZX_YGXXB
                        select data).ToList();
        }
    }




    public class EvectionData
    {
        /// <summary>
        /// 姓名
        /// </summary>
        public string Name { get; set; }
        /// <summary>
        /// 出发地
        /// </summary>
        public string StartLocation { get; set; }
        /// <summary>
        /// 目的地
        /// </summary>
        public string EndLocation { get; set; }
        /// <summary>
        /// 交通工具
        /// </summary>
        public string Vehicle { get; set; }
        /// <summary>
        /// 交通费
        /// </summary>
        public decimal Transportation { get; set; }
        /// <summary>
        /// 总金额
        /// </summary>
        public decimal Amount { get; set; }
        /// <summary>
        /// 备注
        /// </summary>
        public string Remark { get; set; }
        /// <summary>
        /// 时间
        /// </summary>
        public DateTime? ItemDate { get; set; }
    }
    public class DansiDailySalary : INotifyPropertyChanged
    {       


        private string _YGBH;


        public string YGBH {
            get
            {
                return _YGBH;
            }
            set 
            {
                _YGBH = value;
                NotifyPropertyChanged();
            }
        }


        private string _YGXM;


        public string YGXM
        {
            get
            {
                return _YGXM;
            }
            set
            {
                _YGXM = value;
                NotifyPropertyChanged();
            }
        }


        private string _CPGG;


        public string CPGG
        {
            get
            {
                return _CPGG;
            }
            set
            {
                _CPGG = value;
                NotifyPropertyChanged();
            }
        }

        private double _SCCL;

        public double SCCL
        {
            get
            {
                return _SCCL;
            }
            set
            {
                _SCCL = value;
                NotifyPropertyChanged();
            }
        }



        private double _YGGZ;

        public double YGGZ
        {
            get
            {
                return _YGGZ;
            }
            set
            {
                _YGGZ = value;
                NotifyPropertyChanged();
            }
        }
      

        public event PropertyChangedEventHandler PropertyChanged;
        private void NotifyPropertyChanged([CallerMemberName] String propertyName = "")
        {
            if (PropertyChanged != null)
                PropertyChanged(this, new PropertyChangedEventArgs(propertyName));
        }
    }


    public class ZhixianDailyRepoItem
    {
        /// <summary>
        /// 产品规格
        /// </summary>
        /// </summary>
        public string CPGG { get; set; }
        /// <summary>
        /// 库存件数
        /// </summary>
        /// </summary>
        public int KCJS { get; set; }

        /// <summary>
        /// 库存重量（Kg）
        /// </summary>
        /// </summary>
        public double KCZL { get; set; }

        /// <summary>
        /// 入库件数
        /// </summary>
        /// </summary>
        public int RKJS { get; set; }

        /// <summary>
        /// 入库重量（Kg）
        /// </summary>
        /// </summary>
        public double RKZL { get; set; }
        /// <summary>
        /// 出库件数
        /// </summary>
        /// </summary>
        public int CKJS { get; set; }

        /// <summary>
        /// 出库重量（Kg）
        /// </summary>
        /// </summary>
        public double CKZL { get; set; }

        /// <summary>
        /// 结存件数
        /// </summary>
        /// </summary>
        public int JCJS { get; set; }

        /// <summary>
        /// 结存重量（Kg）
        /// </summary>
        /// </summary>
        public double JCZL { get; set; }

    }
    public class ZhiXianPeriodOutputSalaryRepo
    {
        // <summary>
        /// 产品规格 或人员姓名
        /// </summary>
        /// </summary>
        public string RowLabel { get; set; }   //规格

        /// <summary>
        /// 产量
        /// </summary>
        public Double SCCL { get; set; }
        /// <summary>
        /// 总工资
        /// </summary>
        public double TotalGZ { get; set; }

       
    }
    public class ZhiXianDailyOutputRepo
    {
        /// <summary>
        /// 班次
        /// </summary>
        /// </summary>
        public string Runs { get; set; }   //白班和晚班


      

        ///// <summary>
        ///// 开机3台时间
        ///// </summary>
        ///// </summary>
        //public int KJS3 { get; set; }
        ///// <summary>
        ///// 开机4台时间
        ///// </summary>
        ///// </summary>
        //public int KJS4 { get; set; }

        ///// <summary>
        ///// 开机5台时间
        ///// </summary>
        ///// </summary>
        //public int KJS5 { get; set; }

        // <summary>
        /// 产品规格
        /// </summary>
        /// </summary>
        public string CPGG { get; set; }   //规格

        /// <summary>
        /// 产量
        /// </summary>
        public Double SCCL { get; set; }
        /// <summary>
        /// 总工资
        /// </summary>
        public double TotalGZ { get; set; }

        /// <summary>
        /// 日期字符串
        /// </summary>
        /// </summary>
        public string DateString { get; set; }   //白班和晚班
    }


}
